{% load i18n %}<!doctype html public "-//W3C//HTML 4.01 Transitional//EN">
<head>
  <title>{% block title %}{% trans "Latitude Tags" %}{% endblock %}</title>
  <meta http-equiv="refresh" content="60">
  <link rel=stylesheet href="static/style.css">
  {% if vars.is_mobile %}
    <meta name="viewport" content="user-scalable=no">
    <link rel=stylesheet href="static/mobile.css">
  {% endif %}
  <script>
    var is_member = {{ vars.member|yesno:"true,false" }};
    var is_mobile = {{ vars.is_mobile|yesno:"true,false" }};
  </script>
  {% block scripts %}{% endblock %}
</head>

<body id="{% block page %}{% endblock %}-page">
  <div id="header">
    <div class="title"><a href="/">{% trans "Latitude Tags" %}</a></div>
    <div class="user">
      {% if vars.user %}
        <span class="email">{{ vars.user.email|escape }}</span>
        {% if vars.member %}
          <span class="nickname">({{ vars.member.nickname|escape }})</span>
        {% endif %}
        &nbsp;
        <a href="{{ vars.logout_url|escape }}">{% trans "Sign out" %}</a>
      {% else %}
        <a href="{{ vars.login_url|escape }}">{% trans "Sign in" %}</a>
      {% endif %}
    </div>
  </div>

  {% block content %}{% endblock %}

  <div class="vshadow vs1"></div>
  <div class="vshadow vs2"></div>
  <div class="vshadow vs3"></div>
</body>
